Optimal. Leaf size=398 \[ -\frac {2 b \sqrt {a+b} \cot (e+f x) (c+d \sec (e+f x)) \sqrt {\frac {(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt {-\frac {(b c-a d) (\sec (e+f x)+1)}{(a-b) (c+d \sec (e+f x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{a f \sqrt {c+d} (b c-a d)}-\frac {2 \sqrt {c+d} \cot (e+f x) (a+b \sec (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sec (e+f x))}{(c+d) (a+b \sec (e+f x))}} \sqrt {\frac {(b c-a d) (\sec (e+f x)+1)}{(c-d) (a+b \sec (e+f x))}} \Pi \left (\frac {a (c+d)}{(a+b) c};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{a c f \sqrt {a+b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.44, antiderivative size = 398, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {3938, 3936, 3984} \[ -\frac {2 b \sqrt {a+b} \cot (e+f x) (c+d \sec (e+f x)) \sqrt {\frac {(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt {-\frac {(b c-a d) (\sec (e+f x)+1)}{(a-b) (c+d \sec (e+f x))}} F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )}{a f \sqrt {c+d} (b c-a d)}-\frac {2 \sqrt {c+d} \cot (e+f x) (a+b \sec (e+f x)) \sqrt {-\frac {(b c-a d) (1-\sec (e+f x))}{(c+d) (a+b \sec (e+f x))}} \sqrt {\frac {(b c-a d) (\sec (e+f x)+1)}{(c-d) (a+b \sec (e+f x))}} \Pi \left (\frac {a (c+d)}{(a+b) c};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right )}{a c f \sqrt {a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3936
Rule 3938
Rule 3984
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+b \sec (e+f x)} \sqrt {c+d \sec (e+f x)}} \, dx &=\frac {\int \frac {\sqrt {a+b \sec (e+f x)}}{\sqrt {c+d \sec (e+f x)}} \, dx}{a}-\frac {b \int \frac {\sec (e+f x)}{\sqrt {a+b \sec (e+f x)} \sqrt {c+d \sec (e+f x)}} \, dx}{a}\\ &=-\frac {2 \sqrt {c+d} \cot (e+f x) \Pi \left (\frac {a (c+d)}{(a+b) c};\sin ^{-1}\left (\frac {\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}{\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}\right )|\frac {(a-b) (c+d)}{(a+b) (c-d)}\right ) \sqrt {-\frac {(b c-a d) (1-\sec (e+f x))}{(c+d) (a+b \sec (e+f x))}} \sqrt {\frac {(b c-a d) (1+\sec (e+f x))}{(c-d) (a+b \sec (e+f x))}} (a+b \sec (e+f x))}{a \sqrt {a+b} c f}-\frac {2 b \sqrt {a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+b \sec (e+f x)}}{\sqrt {a+b} \sqrt {c+d \sec (e+f x)}}\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right ) \sqrt {\frac {(b c-a d) (1-\sec (e+f x))}{(a+b) (c+d \sec (e+f x))}} \sqrt {-\frac {(b c-a d) (1+\sec (e+f x))}{(a-b) (c+d \sec (e+f x))}} (c+d \sec (e+f x))}{a \sqrt {c+d} (b c-a d) f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 2.37, size = 249, normalized size = 0.63 \[ \frac {4 i \cos ^2\left (\frac {1}{2} (e+f x)\right ) \sec (e+f x) \sqrt {\frac {a \cos (e+f x)+b}{(a+b) (\cos (e+f x)+1)}} \sqrt {\frac {c \cos (e+f x)+d}{(c+d) (\cos (e+f x)+1)}} \left (F\left (i \sinh ^{-1}\left (\sqrt {\frac {b-a}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )-2 \Pi \left (-\frac {a+b}{a-b};i \sinh ^{-1}\left (\sqrt {\frac {b-a}{a+b}} \tan \left (\frac {1}{2} (e+f x)\right )\right )|\frac {(a+b) (c-d)}{(a-b) (c+d)}\right )\right )}{f \sqrt {\frac {b-a}{a+b}} \sqrt {a+b \sec (e+f x)} \sqrt {c+d \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 5.84, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {b \sec \left (f x + e\right ) + a} \sqrt {d \sec \left (f x + e\right ) + c}}{b d \sec \left (f x + e\right )^{2} + a c + {\left (b c + a d\right )} \sec \left (f x + e\right )}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {b \sec \left (f x + e\right ) + a} \sqrt {d \sec \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 2.15, size = 292, normalized size = 0.73 \[ -\frac {2 \left (\EllipticF \left (\frac {\left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {a -b}{a +b}}}{\sin \left (f x +e \right )}, \sqrt {\frac {\left (a +b \right ) \left (c -d \right )}{\left (a -b \right ) \left (c +d \right )}}\right )-2 \EllipticPi \left (\frac {\left (-1+\cos \left (f x +e \right )\right ) \sqrt {\frac {a -b}{a +b}}}{\sin \left (f x +e \right )}, -\frac {a +b}{a -b}, \frac {\sqrt {\frac {c -d}{c +d}}}{\sqrt {\frac {a -b}{a +b}}}\right )\right ) \cos \left (f x +e \right ) \left (\sin ^{2}\left (f x +e \right )\right ) \sqrt {\frac {d +c \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \sqrt {\frac {b +a \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (a +b \right )}}\, \sqrt {\frac {d +c \cos \left (f x +e \right )}{\left (1+\cos \left (f x +e \right )\right ) \left (c +d \right )}}}{f \left (-1+\cos \left (f x +e \right )\right ) \left (d +c \cos \left (f x +e \right )\right ) \left (b +a \cos \left (f x +e \right )\right ) \sqrt {\frac {a -b}{a +b}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {b \sec \left (f x + e\right ) + a} \sqrt {d \sec \left (f x + e\right ) + c}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {1}{\sqrt {a+\frac {b}{\cos \left (e+f\,x\right )}}\,\sqrt {c+\frac {d}{\cos \left (e+f\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a + b \sec {\left (e + f x \right )}} \sqrt {c + d \sec {\left (e + f x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________